Skip to main content

Trades

The Trades data will give you details on executed trades for a specific market. The endpoint will return information about the price of the trade, the quantity, and the time at which the trade took place.

You can use the following endpoint to get Trades data:

https://public.coindcx.com/market_data/trade_history/?pair={insert_pair}&limit={insert_limit}

To extract trades data, you have to paas two parameters in the API request:

ParameterRequiredDescription
pairYesIt is a string created by ecode, target_currency_short_name, and base_currency_short name. For example, B-BTC_USDT.
limitNoInput the number of trades that will be returned in the response. The acceptable values for this parameter range from 1 to 100.
note

If the limit parameter is not passed, the default number of trades returned will be 30.

The CoinDCX Trades API endpoint, gives you the following information:

ParameterDescription
pIndicates the trade price.
qIndicates the quantity.
sDenotes the name of the market.
TIndicates the time at which the trade took place.
mIndicates if the buyer is a market maker or not. Values for this parameter are:
  • true: The trader is a market maker.
  • False: The trader is not a market maker.